package com.etong.citymap.db.impl;

import java.util.List;

import android.content.Context;
import com.etong.citymap.module.SentenceBean;
import com.etong.citymap.util.DBHelper;
import com.etong.citymap.util.Status;

public class SentenceDaoImp extends BaseDaoImpl<SentenceBean> {

	public SentenceDaoImp(Context context) {
		super(new DBHelper(context));
	}
	
	public List<SentenceBean> find() {
		String orderBy = " uploadState asc,createdate desc ";
		return find(null, null, null, null, null, orderBy, null);
	}
	
	public List<SentenceBean> findHCHS() {
		String where = " uploadState >= 0 and flag<>1 and saveState= "+Status.SaveState_t1;
		return find(null, where, null, null, null, null, null);
	}


}
